package com.wqz.service;

import com.wqz.dao.BookMapper;
import com.wqz.dao.UserMapper;
import com.wqz.pojo.blacklist;
import com.wqz.pojo.user;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class userServiceImpl implements userService {

    @Autowired
    private UserMapper userMapper;

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public int updateUser(user user) {
        return userMapper.updateUser(user);
    }

    @Override
    public int addUser(user user) {
        return userMapper.addUser(user);
    }

    @Override
    public boolean login(user user) {
        return userMapper.login(user);
    }

    @Override
    public user queryUserByName(String bookName) {
        return userMapper.queryUserByName(bookName);
    }

    @Override
    public boolean queryillegalUser(blacklist blacklist) {
        return userMapper.queryillegalUser(blacklist);
    }


}
